import request from '@/config/axios'

export interface DsPreSqlReqVO {
    sql: string, // SQL语句
    dsId: number // 数据源ID
}

export const DsApi = {
    //预览数据
    previewSql: async (data: DsPreSqlReqVO) => {
        return await request.post({ url: `/data/ds/previewSql`, data })
    },
    //获取数据源集列表
    getDsList: async () => {
        return await request.get({ url: `/data/ds/list` })
    },

}


